<template slot-scope="scope">
  <div class="box">
    <div class="dialog-box">
      <el-dialog
        title="提示"
        :visible.sync="dialogDele"
        :before-close="handleClose"
        :modal-append-to-body="true"
        :lock-scroll="false"
      >
        <div class="dialog-p">
          <p v-if="select != '6'">此操作将删除该信息，是否继续？</p>
          <p v-if="select == '6'&&num=='6'">此操作将彻底删除该信息，是否继续？</p>
          <p v-if="num == '7'">此操作将该信息进行恢复，是否继续？</p>
        </div>

        <span slot="footer" class="dialog-footer">
          <el-button @click="handleClose">取 消</el-button>
          <el-button type="primary" @click="handleUnderstand">确 定</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    // deviceList: {
    //   type: Array,
    //   default: () => {
    //     return [];
    //   },
    // },
    dialogDele: {},
    select: {},
    num:{}
  },
  components: {},
  data() {
    return {};
  },
  computed: {},
  created() {
    console.log(this.listarr);
  },
  methods: {
    handleClose() {
      this.$emit("handleCloseDele", this.dialogDele);
      //   this.dialogVisible = false;
    },
    handleUnderstand() {
      this.$emit("handleUnderstand", this.dialogDele);
    },
  },
};
</script>

<style scoped lang="less">
.dialog-p {
  width: 100%;
  height: 30px;
  //   margin-top: -30px;
  display: flex;
  p {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #101010;
    font-size: 18px;
  }
}
::v-deep .el-dialog__wrapper {
  position: absolute !important;
  min-width: 200px;
}
::v-deep .v-modal {
  position: absolute !important;
  min-width: 200px;
}
/deep/.el-dialog {
  border-radius: 10px;
  background-color: FFFFFF;
  min-width: 400px;
  max-width: 700px;
  font-weight: 600;
}
</style>
